<ul class="tab">
  <php>if($userLevel>1){</php>
  <li <php>if(ACTION_NAME=='category') echo "class='on'";</php> > <span><a href="{:U('portal/Page/category','channelId='.$channelId)}">分层管理</a></span> </li>
  <php>}</php>
  <li <php>if(ACTION_NAME=='index' && !isset($_GET['pageId'])) echo "class='on'";</php> > <span><a href="{:U('portal/Page/index','channelId='.$channelId)}">增加页面</a></span> </li>
  <li <php>if(ACTION_NAME=='admin') echo "class='on'";</php> > <span><a href="{:U('portal/Cms/admin','channelId='.$channelId)}">文章管理</a></span> </li>
  <li <php>if(ACTION_NAME=='add') echo "class='on'";</php> > <span><a href="{:U('portal/Cms/add','channelId='.$channelId)}">增加文章</a></span> </li>
  
  <php>if(isset($_GET['pageId'])){</php>
  <li <php>if(ACTION_NAME=='index') echo "class='on'";</php> > <span>修改页面</span> </li>
  <php>}</php>
  <php>if(isset($_GET['cmsId'])){</php>
  <li <php>if(ACTION_NAME=='edit') echo "class='on'";</php> > <span>修改文章</span> </li>
  <php>}</php>
</ul>
